/*
 * Copyright (C) 2015 The Gravitee team (http://gravitee.io)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
@use 'sass:map';
@use '@angular/material/index' as mat;
@use '@gravitee/ui-particles-angular/index' as gio;

$textColor: map.get(gio.$mat-dove-palette, default);
$borderColor: mat.get-color-from-palette(gio.$mat-space-palette, 'lighter20');

.title {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-bottom: 1px solid $borderColor;
  padding: 8px 8px 20px 8px;
  margin-bottom: 12px;

  .gio-badge-primary {
    margin-left: 0;
  }

  .icon {
    margin-right: 4px;
  }
}

.navigation {
  height: 100%;
  display: grid;
  grid-template-columns: min-content auto;
  grid-template-areas: 'menu content';

  a {
    text-decoration: none;
  }

  &__menu {
    grid-area: menu;
    display: flex;
    flex-direction: column;
  }

  &__submenu {
    z-index: 70;
    height: 100%;
    color: $textColor;
  }

  &__content {
    grid-area: content;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: 100%;

    a {
      text-decoration: none;
    }
  }
}

.menu-item {
  display: flex;
  flex-direction: row;
  align-items: center;

  &__text {
    line-height: 17px;
  }
  &__icon {
    height: 18px;
    margin-right: 8px;
  }
}
